package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.GlryFddbr;
import com.corpcredit.service.GenericManager;

public class GlryFddbrList extends BasePage implements Serializable {
    private GenericManager<GlryFddbr, Long> glryFddbrManager;

    public void setGlryFddbrManager(GenericManager<GlryFddbr, Long> glryFddbrManager) {
        this.glryFddbrManager = glryFddbrManager;
    }

    public GlryFddbrList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getGlryFddbrs() {
        return sort(glryFddbrManager.getAll());
    }
}

